package com.idheima.zuoye.zuoye4;

public class Test {
    public static void main(String[] args) {
        Yuangong yuangong = new Yuangong();
        yuangong.show(new Dog("小黄"));
        yuangong.show(new Cat("小花"));
        yuangong.show(new Pig("小黑"));
    }
}
